#pragma once

#define MAX_BUFFER_SIZE 10240

class Buffer
{
public:
	Buffer();
	~Buffer();

	int pushData(const char *_b, int _s);
	int popData(char *_b, int _s);
	int mustPopData(char *_b, int _s);
	int lookData(char *_b, int _s);
	const char * getBufferPtr();
	int size();
	void skipData(int skip);
	void print();

private:
	char *buf;
	int len;
};


